﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;

namespace CrashReporter
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main(string[] args)
        {
            if (args.Length > 0)
            {
                try
                {
                    Application.Run(new frmMain(args[0]));
                }
                catch (Exception e)
                {
                    MessageBox.Show(e.Message);
                }
            }
            else
            {
                Application.Run(new frmMain());
            }
            
        }
    }
}